﻿<!DOCTYPE html>

<style>
    #t1{
        height:35px;
        align:"center"
    }
    th,td{
       text-align: center;
    }

</style>


<html>

     <div class="bjui-pageHeader">
         <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/bb214/lotIdTable?stageId=<%=stageId%>&partName=<%=partName%>&name=<%=name%>" method="post">
             <div class="bjui-searchBar">
                 <g:hiddenField name="SYS_QUERY_NAME" value="stepTableByDesc" />
                 <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />
                 <label >批号：</label>
                 <g:select name="lotId" from="${lotIdListByStep }" data-toggle="selectpicker" data-live-search="true" optionKey="LOT_ID" optionValue="LOT_ID" value="${lotId}" noSelection="['':'ALL']" />&nbsp;
                 <label >调度单号：</label>
                 <g:select name="woId" from="${woIdListByStep}"   data-toggle="selectpicker"  data-live-search="true" optionKey="WO_ID" optionValue="WO_ID" value="${woId}" noSelection="['':'ALL']" />&nbsp;
                 <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
                 <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/bb214/exportExcel')" data-icon="file-excel-o" title="导出Excel">导出</button>&nbsp;
             </div>
         </form>
     </div>
     <div class="bjui-pageContent">
         <g:if test="${stepTableByDescList.size() > 0}">
             <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
                 <thead>
                 <tr id="t1" >
                     <th >批号</th>
                     <th >产品型号</th>
                     <th >调度单号</th>
                     <th >成膜批号</th>
                     <th >组装批号</th>
                     <th >封装批号</th>
                     <th >数量</th>
                     <th >状态</th>
                     <th >优先级</th>
                     <th >工步描述</th>
                     <th >批次类型</th>
                     <th >姓名</th>
                     <th >设备型号</th>
                     <th >批次投产日期</th>
                     <th >预计完成日期</th>
                 </tr>
                 </thead>
                 <tbody>
                 <g:each in="${stepTableByDescList}" status="i" var="TableInstance">
                     <tr >
                         <td  id="lot">
                             <a href="${request.getContextPath()}/bb214/allStepTable?lotId=<%=TableInstance.LOT_ID%>" data-toggle="dialog" data-width="1100" data-height="200" data-id="dialog">
                                 ${TableInstance.LOT_ID}
                             </a>
                         </td>
                         <td>${TableInstance.PART_NAME}</td>
                         <td>${TableInstance.WO_ID}</td>
                         <td>${TableInstance.CUSTOMER_ORDER}</td>
                         <td>${TableInstance.CUSTOMER_PART_ID}</td>
                         <td>${TableInstance.CUSTOMER_CODE}</td>
                         <td>${TableInstance.MAIN_QTY}</td>
                         <td>${TableInstance.STATE}</td>
                         <td>${TableInstance.PRIORITY}</td>
                         <td>${TableInstance.STEP_DESC}</td>
                         <td>${TableInstance.LOT_TYPE}</td>
                         <td>${TableInstance.DESCRIPTION}</td>
                         <td>${TableInstance.EQUIPMENT_ID}</td>
                         <td>${TableInstance.STATE_ENTRY_TIME}</td>
                         <td>${TableInstance.PLAN_END_DATE}</td>
                     </tr>
                 </g:each>
                 </tbody>
             </table>
         </g:if>
         <g:else>
             <g:render template="../template/emptyPanel" />
         </g:else>
     </div>
<g:render template="../template/pagination" />

     <div class="bjui-pageFooter">

     </div>

 </html>